package com.wind.scheduled;

import com.wind.scheduled.task.GlobalTask;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 全局定时器
 */
@Slf4j
@Component
@AllArgsConstructor
public class GlobalScheduled {
    private final GlobalTask globalTask;

//    @Scheduled(cron = "0/20 * * * * ?")
    public void pushSupplierOrderResult() {
        this.globalTask.test();
    }
}
